package com.szty.lib_pen.oidbluetooth

import com.sjh.lib_app.bean.BleDevBean
import com.tqltech.tqlpencomm.bean.Dot
import com.tqltech.tqlpencomm.bean.ElementCode

/**
 *    author : SunJH
 *    date   : 2021/4/8 0008
 *    desc   :
 */
abstract class OnDataReceiveListener {
    open fun onDataReceive(dot: Dot?){}

    open fun onOfflineDataReceive(dot: Dot?){}

    open fun onFinishedOfflineDown(success: Boolean){}

    open fun onOfflineDataNum(num: Int){}

    open fun onReceiveOfflineProgress(i: Int){}

    open fun onReceivePenLED(color: Int){}

    open fun onConnectFailed(){}

    open fun onWriteCmdResult(code: Int){}

    open fun onReceivePenType(type: String?){}

    open fun onBleInfo(bleDevBean: BleDevBean){}
    open fun onReceiveElementCode(elementCode: ElementCode){}

    /**
     * 蓝牙笔连接状态改变的回调
     * 1. 连接成功
     * 2. 断开连接
     * 3. 连接失败
     */
    open fun onConnectChange(status:Int){}

    /**
     * 刷新数据
     */
    open fun refData(){}
}